/**
 * User: zsquirrel
 * Date: 2020/5/12
 * Time: 9:22 下午
 */
package com.cskaoyan.mall.model.vo;

import java.sql.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class GoodsInfoMsgVO {

    private Integer id;

    private String content;

    private String asker;

    private String time;

    private MsgReplyVO reply = new MsgReplyVO();

    /**
     * dbutils肯定会利用反射调用该方法，所以可以在这里做一些事情
     * @param replyContent
     */
    public void setReplyContent(String replyContent){
        reply.setContent(replyContent);
    }

    /**
     * dbutils肯定会利用反射调用该方法，所以可以在这里做一些事情
     * @param replytime
     */
    public void setReplytime(Date replytime){
        DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        reply.setTime(format.format(replytime));
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAsker() {
        return asker;
    }

    public void setAsker(String asker) {
        this.asker = asker;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public MsgReplyVO getReply() {
        return reply;
    }

    public void setReply(MsgReplyVO reply) {
        this.reply = reply;
    }
}
